cmake_minimum_required(VERSION 3.5)

set(test_utilities_path "${CMAKE_CURRENT_SOURCE_DIR}/test/")  
configure_file(${CMAKE_CURRENT_SOURCE_DIR}/test/test_utilities_path.h.in 
${CMAKE_CURRENT_SOURCE_DIR}/test/test_utilities_path.h)

add_library(poly2d poly2d.cpp)
add_library(yaml_to_2d_table yaml_to_2d_table.cpp)
target_link_libraries(yaml_to_2d_table 
						yaml-cpp
						${catkin_LIBRARIES})
add_executable(test_poly2d test/test_poly2d.cpp)
target_link_libraries(test_poly2d poly2d)
add_library(utilities INTERFACE)
target_link_libraries(utilities INTERFACE
						poly2d
		)
add_executable(test_yaml_to_table test/test_yaml_to_table.cpp)
target_link_libraries(test_yaml_to_table yaml_to_2d_table 
					${catkin_LIBRARIES}
					${PYTHON_LIBRARIES}
		)
target_include_directories(test_yaml_to_table PRIVATE ${PYTHON_INCLUDE_DIRS})
